package com.jiang.dao;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate4.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

@Repository
public class BaseDAOHiberTemp extends HibernateDaoSupport {
	// 看样子注入SessionFactory就可以了

	@Autowired
	public void setMyFactory(SessionFactory sf) {
		super.setSessionFactory(sf);
	}

}
